package com.yoj.serviceclient.service.question.fallback;

import com.yoj.model.entity.Question;
import com.yoj.model.entity.QuestionSubmit;
import com.yoj.serviceclient.service.question.QuestionFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class QuestionFeignClientFallback implements QuestionFeignClient {

    @Override
    public Question getQuestionById(long questionId) {
        log.error("getQuestionById 查询失败，参数：{}", questionId);
        return null;
    }

    @Override
    public boolean updateQuestionById(Question question) {
        log.error("updateQuestionById 更新失败，参数：{}", question);
        return false;
    }

    @Override
    public QuestionSubmit getQuestionSubmitById(long questionSubmitId) {
        log.error("getQuestionSubmitById 查询失败，参数：{}", questionSubmitId);
        return null;
    }

    @Override
    public boolean updateQuestionSubmitById(QuestionSubmit questionSubmit) {
        log.error("updateQuestionSubmitById 更新失败，参数：{}", questionSubmit);
        return false;
    }
}
